<?php
/*
 * Created on 2011-9-4
 *
 * To change the template for this generated file go to
 * Window - Preferences - PHPeclipse - PHP - Code Templates
 */
 
	include_once ("../configs/config.php");     //配置参数
	include_once ("../common/mysql.class.php");   //MySQL操作类
	include_once ("../common/action.class.php");   //MySQL操作类
	
	$user_id = $_COOKIE['user_id'];
	$message = $_POST['message'];
	$bottle_id = $_POST['bottle_id'];
	
	$message = mysql_real_escape_string($message);
	
	$db = new action($mydbhost, $mydbuser, $mydbpw, $mydbname, "temp_conn", $mydbcharset, $mydbtag); //实例化数据库类
	$ret = $db->reply_bottle($user_id,$bottle_id,$message);
	if($ret == -1){
		echo -1;
	}
	else{
		echo $ret;
	}
?>
